package cn.itsource.pethome.system.dept.domain;

import cn.itsource.pethome.base.domain.BaseDomain;
import cn.itsource.pethome.system.user.domain.Employee;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    @ApiParam(name="部门编号",required = true)
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;

    private Employee manager;
    private Department parent;

    //children 不能写错 因为element要使用
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList();
}
